package com.cqhfan.pojo.content.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cqhfan.core.enums.CommentTypeEnum;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author 眭传洪
 * @create 2025-08-13 23:34
 * @desc 评论表
 */
@Data
@TableName("comment")
public class Comment {

    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    // 评论类型
    private CommentTypeEnum commentType;

    // 对应的业务id
    private Long bizId;

    // 父评论id
    private Long parentId;

    // 评论内容
    private String content;

    // 发布者id
    private Long publishUserId;

    // 回复的用户id
    private Long replyUserId;

    // 底下的评论数
    private Integer commentQuantity;

    // 点赞数
    private Integer likesQuantity;

    // 是否显示
    @TableField(value = "if_show")
    private Boolean ifShow;

    // 发布时间
    private LocalDateTime publishTime;

}
